<?php
// +----------------------------------------------------------------------
// | Amicool-MVC [ Dynamic Flexible Agile Devlepment]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2020 http://amicool.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 郡笑笙 <iamzjs@126.com>
// +----------------------------------------------------------------------


function redirect($url, $msg='')
{	 header("Content-type:text/html;charset=utf-8"); 
	$url = SITE_ROOT.'/admin.php?'.$url;
   echo $msg.'<a href="'.$url.'">如果没有跳转，请点这里跳转</a>';
   header("refresh:3;url=$url"); 
}
function redirect1($url,$params=array(),$delay=0,$msg='') {
        //$url    =   U($url,$params);
        $url = SITE_ROOT.'/Admin.php/'.$url;
        header("location:".$url);
}
?>